#ifndef MYCANVAS_H_INCLUDED
#define MYCANVAS_H_INCLUDED

#include "main.h"

 class MyCanvas : public wxWindow
 {
 public:
 	MyCanvas(SampleApp * AApp, wxWindow *parent, wxWindowID id, const wxPoint&
       pos=wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0);

 	void drawSomething();
     wxMemoryDC dc;
     wxGraphicsContext *gc;

 protected: // event handlers (NO virtual)
 	void OnPaint(wxPaintEvent& event);
 	void OnMaximize(wxSizeEvent& event);
 private:
 	wxBitmap m_pixels;
 	SampleApp * App;

 	// any class wishing to process wxWidgets events must use this macro
 	DECLARE_EVENT_TABLE()
 };


#endif // MYCANVAS_H_INCLUDED
